package com.xlf.book.biz.impl;

import com.xlf.book.biz.BookInfoBiz;
import com.xlf.book.dao.BookInfoDao;
import com.xlf.book.dao.impl.BookInfoDaoImpl;
import com.xlf.book.po.BookInfo;

import java.util.Date;
import java.util.List;

/**
 * @author xie'lin'feng
 * @date 2020-07-20-16:24
 * @description 图书类型业务逻辑接口实现类
 */
public class BookInfoBizImpl implements BookInfoBiz {
    BookInfoDao bid = new BookInfoDaoImpl();
    @Override
    public List<BookInfo> queryAll(String name) {
        return bid.queryAll(name);
    }

    @Override
    public List<BookInfo> queryAll() {
        return bid.queryAll();
    }

    @Override
    public boolean deleteInfo(Integer typeId) {
        return bid.deleteInfo(typeId);
    }

    @Override
    public boolean addInfo(BookInfo info) {
        return bid.addInfo(info);
    }

    @Override
    public Integer queryCount() {
        return bid.queryCount();
    }

    @Override
    public BookInfo queryById(Integer id) {
        return bid.queryById(id);
    }

    @Override
    public boolean update(BookInfo info) {
        return bid.update(info);
    }
}
